package com.erp.erp_servers.ProducWj.imp;

import com.erp.erp_dao.ProducWj.IProductWjDAO;
import com.erp.erp_entitys.ProducWj.ProducWjEntity;
import com.erp.erp_entitys.ProducWj.ProducWjExample;
import com.erp.erp_servers.ProducWj.IProductWjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpProductWjService implements IProductWjService {
    @Autowired
    IProductWjDAO productWjDAO;
    @Override
    public long countByExample(ProducWjExample example) {
        return productWjDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(ProducWjExample example) {
        return productWjDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productWjDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProducWjEntity record) {
        return productWjDAO.insert(record);
    }

    @Override
    public int insertSelective(ProducWjEntity record) {
        return productWjDAO.insertSelective(record);
    }

    @Override
    public List<ProducWjEntity> selectByExample(ProducWjExample example) {
        return productWjDAO.selectByExample(example);
    }

    @Override
    public ProducWjEntity selectByPrimaryKey(Integer id) {
        return productWjDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ProducWjEntity record, ProducWjExample example) {
        return productWjDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ProducWjEntity record, ProducWjExample example) {
        return productWjDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ProducWjEntity record) {
        return productWjDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProducWjEntity record) {
        return productWjDAO.updateByPrimaryKey(record);
    }
}
